package app.kotlin_1.fragment

import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import app.kotlin_1.R


/**
 * Created by 刘智强 on 2017/9/19.
 */
 class  ActivityFragment : Fragment(){

    companion object {
        fun newInstance(args:String):ActivityFragment{
         var   fragment=ActivityFragment()
            var bundle= Bundle()
            bundle.putString("args",args)
            fragment.arguments=bundle
            return  fragment

        }
    }

    override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View {
        return inflater!!.inflate(R.layout.fragment_activity,container,false)
    }

}